package com.hu.bgp.server;

import java.util.HashMap;

import com.hu.bgp.server.domain.Profile;

public class PlayerCollection
{
	private HashMap<Profile, Player> profileToPlayerMap = new HashMap<Profile, Player>();
	private HashMap<String, Player> uuidToPlayerMap = new HashMap<String, Player>();

	public void add(Player player)
	{
		uuidToPlayerMap.put(player.getUuidString(), player);
		profileToPlayerMap.put(player.getProfile(), player);
	}

	public Player get(String uuid)
	{
		return uuidToPlayerMap.get(uuid);
	}
}
